From 0c0f0ab5ab58fef59d357897749553f610cf7101 Mon Sep 17 00:00:00 2001 From: Varad Gautam Date: Mon, 18 Mar 2019 16:59:43 +0100 Subject: [PATCH] x86/pmtimer: fix hvm_acpi_sleep_button behavior Commit 19fb14622e941 "x86/pmtimer: move ACPI registers from PMTState to hvm_domain" misconfigures pm1a_sts for hvm_acpi_sleep_button with PWRBTN_STS instead of SLPBTN_STS, which leads to XEN_DOMCTL_SENDTRIGGER_SLEEP causing guest powerdowns. Fix this. Signed-off-by: Varad Gautam Reviewed-by: Andrew Cooper master commit: b22c900c44a2db8db1c53e269e152206e55c273f master date: 2019-02-20 17:06:25 +0100 --- xen/arch/x86/hvm/pmtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/pmtimer.c b/xen/arch/x86/hvm/pmtimer.c index 435647ff1e..b56b743c12 100644 --- a/xen/arch/x86/hvm/pmtimer.c +++ b/xen/arch/x86/hvm/pmtimer.c @@ -87,7 +87,7 @@ void hvm_acpi_sleep_button(struct domain *d) return; spin_lock(&s->lock); - d->arch.hvm_domain.acpi.pm1a_sts |= PWRBTN_STS; + d->arch.hvm_domain.acpi.pm1a_sts |= SLPBTN_STS; pmt_update_sci(s); spin_unlock(&s->lock); } -- 2.30.2